@model List<ToDo.Models.InventoryViewModel>
    @{
    Layout = null;
    }
    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <div class="alert alert-warning">
        <a href="#" class="close" data-dismiss="alert">
            &times;
        </a>
        <strong>警告！</strong>清单名已被使用，请重新输入！
    </div>
    <div class="color-block" id="block1">
        <input type="text" placeholder="输入清单名称，Enter键结束" maxlength="50" name="inventoryName" class="input-text" onkeyup="AfterViewCreateInventory()" id="create-inventory-name" />
        <img src="~/images/回车.png" class="enter-icon" />
    </div>
    <div id="invnetory-block">
        <ul>
            @foreach (var item in Model)
            {
                <li class="input-li">
                    <div class="circle" onclick="showInventoryItems(@item.InventoryId)">
                        <label class="radio">
                            <input type="radio" name="radio" value="1"><i></i>
                        </label>
                    </div>
                    <a href="/Inventory/ViewModifyInventoryName?inventoryId=@item.InventoryId" title="修改清单">
                        <span class="input-inventory-name">@item.InventoryName</span>
                    </a>
                    <span class="input-inventory-time">@item.CreateTime.Month/@item.CreateTime.Day&nbsp;&nbsp;@item.CreateTime.Hour:@item.CreateTime.Minute</span>
                    <a onclick="deleteInventory(@item.InventoryId)" data-toggle="modal" data-target="#myModal"><img src="~/images/删除.png" alt="图标" class=" remove-icon" /></a>
                </li>
            }
        </ul>
    </div>
